"""
27 - Dars. Funksiyalar 1.
"""

kel = 2, 1, 3, 5, 'oq'
print(kel)

def set_register(scc):
    """upper"""
    if ' ' in scc:
        return scc.upper()
    return scc.lower()
#
print(set_register('Hello world'))
print(set_register('Hello,world'))

def get_sum(aaa=0, bbb=0, ccc=0, ddd=1):
    """return"""
    return aaa + bbb + ccc + ddd
#
print(get_sum(1, 2, 5))


def get_sum1(*args):
    """sum"""
    return sum(args)

print(get_sum1(1, 5, 10))


def func(**kwargs):
    """func"""
    print(kwargs)  

func(aaaa=1, bbbb=5, cccc=20)


def f(AAA, XXX, *args, **kwargs):
    print(AAA)
    print(XXX)
    print(args)
    print(kwargs)

f(1, 2, 3, 4, b='test', c='hi')
f(1, 2)
